/*
 * CommandRencontrerObs.h
 *
 *  Created on: 2 janv. 2012
 *      Author: jeddi
 */

#ifndef COMMANDRENCONTREROBS_H_
#define COMMANDRENCONTREROBS_H_

#include "Command.h"
#include "CommandRobot.h"
class CommandRenconterObs: public Command, public CommandRobot {

public:
	static CommandRenconterObs maCmd;

	CommandRenconterObs(Robot*rob=NULL,string d=(string)"RENCONTREROBS") : CommandRobot(rob), Command(d) {
	}

	CommandRenconterObs(string str):Command(str),CommandRobot(){}
	CommandRenconterObs* constVirtual(Robot *rob) {
		return new CommandRenconterObs(rob);
	}

	void executer() {
		r->rencontrerObstacle(&(Obstacle(inv.getInt())));
	}

};

#endif /* COMMANDRENCONTREROBS_H_ */
